package com.fingard.dsp.bank.directbank.fuiou01;

import com.fingard.dsp.bank.directbank.bankInterface.IAcceptNotice;
import com.fingard.generalobj.NoticeReq;
import com.fingard.generalobj.NoticeResp;
import com.fingard.net.listener.SocketReceiver;

public class FUIOU01AcceptNotice extends FUIOU01Base implements IAcceptNotice {


	public NoticeResp dealNotice(NoticeReq pNtReq) throws Exception {
		/**
		 * <?xml version=”1.0” encoding=”UTF-8”?>
		 *  <REFUND> 
		 *  <RSP_CODE>0000</RSP_CODE>
		 *   <RSP_MSG>受理成功</RSP_MSG>
		 *   <MCHNT_CD>0002900F0096235</MCHNT_CD> 
		 *   <TRACE_NO>160816684848</TRACE_NO> 
		 *   <APPLY_DT>20170425</APPLY_DT> 
		 *   <SIGN>EA2DEECBEEF9D59F9DFE6D1CEBD96372</SIGN>
		 *    </REFUND*/
    	NoticeResp resp = new NoticeResp();
    	String p_req = pNtReq.getReqString();
    	WriteBankLogLn("接收到请求：" + pNtReq.getFullString());
    	
    	String tmpStrRet = "0000";
        WriteBankLogLn("响应："+tmpStrRet);
        resp.respBytes = tmpStrRet.getBytes(pNtReq.reqCharset);
    	return resp;
	}


	public void getContentLength(SocketReceiver p_receiver) throws Exception {

	}

}
